from ultralytics import YOLO
##yolo predict model=yolov8n.pt source="https://ultralytics.com/images/bus.jpg"
model = YOLO("yolov8n.pt")  # Load a pretrained YOLOv8 model

# 使用模型进行预测
results = model(source="https://ultralytics.com/images/bus.jpg",save=True)
# print(results)  # 打印结果